package com.ozy.kxreader.base

import android.app.Application
import android.content.Context


import io.rx_cache2.internal.RxCache
import retrofit2.Retrofit


class RepositoryManager
constructor(private val mRetrofit: Retrofit, private val mApplication: Application)
    : IRepositoryManager {
    override fun <T> obtainRetrofitService(service: Class<T>): T? {


        var retrofitService: T? = null;
        if (retrofitService == null) {
            retrofitService = mRetrofit.create(service)
        }
        return retrofitService

    }

    private val mRxCache: RxCache? = null


    override val context: Context
        get() = mApplication



}
